set -g default-terminal "screen-256color"
# set "ctrl + a"
set -g prefix ^a
unbind ^b
bind a send-prefix

# set shell
set-option -g default-shell /bin/zsh

# set statusbar
#set-option -g status-utf8 on
set-option -g status-interval 5
set-option -g status-justify left
set-option -g status-left-length 15
set-option -g status-left ' #h |'
set-option -g status-right ' | %Y-%m-%d %H:%M #[default]'

# set windows options
#set-window-option -g utf8 on
set-window-option -g automatic-rename on

# set copy mode
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection

# set select-pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
unbind-key left
bind-key left select-pane -L
unbind-key up
bind-key up select-pane -U
unbind-key down
bind-key down select-pane -D
unbind-key right
bind-key right select-pane -R

# set mouse
#setw -g mode-mouse on
#setw -g mouse-resize-pane on
#setw -g mouse-select-pane on
#setw -g mouse-select-window on

# set split-window
bind-key \ split-window -h
bind-key | split-window -h
bind-key - split-window -v

